package com.example.demo.controller;


import com.example.demo.dto.ElderlyDetailedPageDTO;
import com.example.demo.pojo.ElderlyDetailedOk;
import com.example.demo.pojo.Result;
import com.example.demo.service.ElderlyDetailedOkService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("elderly/detailed/ok")
@Slf4j
@Tag(name = "老人接口")
@RequiredArgsConstructor
public class ElderlyDetailedOkController {
    private final ElderlyDetailedOkService elderlyDetailedOkService;

    @GetMapping
    @Operation(summary = "获取未确认老人额外列表")
    public Result<List<ElderlyDetailedOk>> getElderlyDetailOk(ElderlyDetailedPageDTO elderlyDetailedPageDTO) {
        List<ElderlyDetailedOk> elderlyDetailedOkList = elderlyDetailedOkService.getElderlyDetailOk(elderlyDetailedPageDTO);
        return Result.success(elderlyDetailedOkList);
    }
}
